import fetch from 'utils/fetch';

// 1. 查询所有服务内容
export function pagePurchaseInvoices(applicateType,type,status,phone,page,rows) {
    const data = {
        applicateType,
        type,
        status,
        phone,
        page,
        rows
    };
    return fetch({
        url: `/invoices/pagePurchaseInvoices/${page}/${rows}`,
        method: 'post',
        data
    });
}

//发票管理：发票处理
export function updatePurchaseInvoices(id,status) {
    const data = {
        id,
        status
    };
    return fetch({
        url: '/invoices/updatePurchaseInvoices',
        method: 'post',
        data
    });
}
